package com.lorenzogao.componentlib;

import com.lorenzogao.componentlib.service.ILoginService;
import com.lorenzogao.componentlib.service.IPayService;

/**
 * Created by GanLanPing
 * data:2019/3/2
 * time:15:26
 * 邮箱:2508719070@qq.com
 * Description:
 */

public class ServiceFactory {


    private static ServiceFactory instance;

    private ServiceFactory(){

    }

    public static ServiceFactory getInstance(){
        synchronized (ServiceFactory.class){
            if (instance==null){
                instance=new ServiceFactory();
            }
        }
        return  instance;
    }

    public ILoginService getiLoginService() {
        return iLoginService;
    }

    public void setiLoginService(ILoginService iLoginService) {
        this.iLoginService = iLoginService;
    }

    public IPayService getiPayService() {
        return iPayService;
    }

    public void setiPayService(IPayService iPayService) {
        this.iPayService = iPayService;
    }

    private ILoginService iLoginService;
    private IPayService iPayService;






}
